package com.yanqu.road.entity.activity.langyabang.data;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_lang_ya_war_report")
public class LangYaBangWarReportData extends DataObject {
    @FieldTypeAnnotation(desc = "活动id",select = true,update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家id",select = true)
    private long userId;
    @FieldTypeAnnotation(desc = "对方玩家id pve为npcId,升级为建筑升级后的id")
    private long otherUserId;
    @FieldTypeAnnotation(desc = "操作类型")
    private int operateType;
    @FieldTypeAnnotation(desc = "操作次数 pvp胜利次数之类")
    private int operateTime;
    @FieldTypeAnnotation(desc = "物品奖励")
    private String goodReward = "";
    @FieldTypeAnnotation(desc = "金币奖励")
    private long coinReward;
    @FieldTypeAnnotation(desc = "他人积分变动 都为正")
    private long scoreChange;
    @FieldTypeAnnotation(desc = "消耗金币")
    private long costCoin;
    @FieldTypeAnnotation(desc = "他人信息")
    private LangYaUserBriefData otherData;
    @FieldTypeAnnotation(desc = "战报时间")
    private long time;
    @FieldTypeAnnotation(desc = "自己的积分变动")
    private long selfScoreChange;



    public int getActivityId() {
        return activityId;
    }
    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public long getOtherUserId() {
        return otherUserId;
    }
    public void setOtherUserId(long otherUserId) {
        if (this.otherUserId != otherUserId) {
            this.otherUserId = otherUserId;
            setOp(DataStatus.Update);
        }
    }

    public int getOperateType() {
        return operateType;
    }
    public void setOperateType(int operateType) {
        if (this.operateType != operateType) {
            this.operateType = operateType;
            setOp(DataStatus.Update);
        }
    }

    public int getOperateTime() {
        return operateTime;
    }
    public void setOperateTime(int operateTime) {
        if (this.operateTime != operateTime) {
            this.operateTime = operateTime;
            setOp(DataStatus.Update);
        }
    }

    public String getGoodReward() {
        return goodReward;
    }
    public void setGoodReward(String goodReward) {
        if (goodReward == null){
            return;
        }
        if (this.goodReward == null || !this.goodReward.equals(goodReward)) {
            this.goodReward = goodReward;
            setOp(DataStatus.Update);
        }
    }

    public long getCoinReward() {
        return coinReward;
    }
    public void setCoinReward(long coinReward) {
        if (this.coinReward != coinReward) {
            this.coinReward = coinReward;
            setOp(DataStatus.Update);
        }
    }

    public long getScoreChange() {
        return scoreChange;
    }
    public void setScoreChange(long scoreChange) {
        if (this.scoreChange != scoreChange) {
            this.scoreChange = scoreChange;
            setOp(DataStatus.Update);
        }
    }

    public long getCostCoin() {
        return costCoin;
    }
    public void setCostCoin(long costCoin) {
        if (this.costCoin != costCoin) {
            this.costCoin = costCoin;
            setOp(DataStatus.Update);
        }
    }

    public LangYaUserBriefData getOtherData() {
        return otherData;
    }
    public void setOtherData(LangYaUserBriefData otherData) {
        if (null == otherData){
            return;
        }
        if (this.otherData == null || !this.otherData.equals(otherData)) {
            this.otherData = otherData;
            setOp(DataStatus.Update);
        }
    }

    public long getTime() {
        return time;
    }
    public void setTime(long time) {
        if (this.time != time) {
            this.time = time;
            setOp(DataStatus.Update);
        }
    }

    public long getSelfScoreChange() {
        return selfScoreChange;
    }

    public void setSelfScoreChange(long selfScoreChange) {
        if (this.selfScoreChange != selfScoreChange) {
            this.selfScoreChange = selfScoreChange;
            setOp(DataStatus.Update);
        }
    }
}
